package com.iterator.demo1.main;

import com.iterator.demo1.Waitress;
import com.iterator.demo1.face.Menu;
import com.iterator.demo1.impl.DinerMenu;
import com.iterator.demo1.impl.PancakeHouseMenu;

/**
 * 迭代者模式：提供一种方法顺序访问一个聚合对象中的各个元素，而又不暴露其内部的表示
 * 
 * @author dell
 * 
 */
public class MenuTestDrive {
	public static void main(String args[]) {
		Menu pancakeHouseMenu = new PancakeHouseMenu();
		Menu dinerMenu = new DinerMenu();

		Waitress waitress = new Waitress(pancakeHouseMenu, dinerMenu);

		waitress.printMenu();
	}

}
